<?php

// +----------------------------------------------------------------------
// | MyCentOS
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.mycentos.com, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 琥珀 <317559272@qqq.com><http://www.mycentos.com>
// +----------------------------------------------------------------------
// | @date  : 2015-03-05 14:13:54
// +----------------------------------------------------------------------
// | @Last Modified by:  琥珀
// +----------------------------------------------------------------------
// | @Last Modified time: 2015-03-14 14:57:53
// +-----------------------------------------------------------------------

namespace Admin\Model;
use Think\Model\RelationModel;

/**
 * 科室模型
 * @author 琥珀 (317559272@qq.com)
 */

Class DepartmentModel extends RelationModel
{
    protected $_link = array('Hospital' => array('mapping_type' => self::BELONGS_TO, 'foreign_key' => 'hospital_id', 'mapping_fields' => 'name', 'parent_key' => 'id', 'mapping_name' => 'name', 'as_fields' => 'name:hospital_name',),);
}
?>